//
//  FindEventView.h
//  eticket
//
//  Created by AnhQuocNguyen on 4/12/13.
//  Copyright (c) 2013 SoinMedia. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DropdownboxView.h"
#import "MBProgressHUD.h"
#import "FinalFindEventView.h"

@protocol findEventViewDelegate;
@interface FindEventView : UIView<dropdownboxViewDelegate, UITextFieldDelegate, finalFindEventDelegate>{
    DropdownboxView *dropdown_Countries;
    DropdownboxView *dropdown_Category;
    
    IBOutlet UIButton *btnCountry;
    IBOutlet UIButton *btnCategory;
    IBOutlet UIButton *btnSearch;
    IBOutlet UITextField *txtEventName;
    IBOutlet UILabel *_lbCountry;
    IBOutlet UILabel *_lbCategory;
    
    BOOL _isClick;
    
    MBProgressHUD *mHud;
    BOOL mLoading;
    NSInteger _countTimeout;
    
    BOOL _finishCountries;
    BOOL _finishCategory;
    
    float _heightDropbox;
    
    
    NSString *_strEventName;
    NSString *_strConutry;
    NSString *_strCategory;
    
    __block FinalFindEventView *_finalFindEvent;

}

@property (nonatomic, assign) id <findEventViewDelegate> findEventViewDelegate;

- (IBAction)btn_Clicked:(id)sender;
- (IBAction)btn_Search:(id)sender;
- (IBAction)btnFindEvent_MyTicket_CLicked:(id)sender;
- (void)enableUI:(BOOL)enable;
- (void)setupUI;
- (void)downKeyboar;

@end

@protocol findEventViewDelegate <NSObject>
- (void)findEventViewLoadingFail:(FindEventView *)findEventView;
@optional
- (void)findEventView:(FindEventView *)findEventView tapButtonSearch:(FinalFindEventView *)finalFindEventView;
- (void)findEventView:(FindEventView *)findEventView backFromFinalFindEventView:(FinalFindEventView *)finalFindEventView;
- (void)findEventViewClickMyTicket:(FindEventView *)findEventView;
@end

